WooCommerce\Square\Settings B

Total Complexity 93
Dependencies 5
Dependents 3
Total lines 911
Lines of code 402
Logical lines of code 179
Comment lines 314
Methods 33
Properties 4

Methods 33

Method Rating Maintainability Complexity Lines of code
get_form_fields()
A
48 14 30
init_form_fields()
A
33 5 121
get_locations()
A
49 10 30
get_access_token()
S
55 7 19
get_refresh_token()
S
55 6 19
update_access_token()
S
55 5 19
update_refresh_token()
S
57 4 17
get_environment()
S
73 4 4
get_location_id()
S
63 4 10
get_system_of_record_name()
S
60 3 14
__construct()
S
55 2 20
generate_connect_html()
S
57 2 20
is_admin_settings_screen()
S
76 3 3
is_inventory_sync_enabled()
S
76 3 3
generate_import_products_html()
S
60 1 16
is_configured()
S
79 2 3
is_system_of_record_disabled()
S
75 2 4
clear_refresh_tokens()
S
81 1 3
get_plugin()
S
82 1 3
hide_missing_square_products()
S
79 1 3
is_sandbox_setting_enabled()
S
80 1 3
get_enable_sandbox()
S
80 1 3
get_refresh_tokens()
S
79 1 3
get_access_tokens()
S
79 1 3
clear_access_tokens()
S
81 1 3
is_connected()
S
80 1 3
is_product_sync_enabled()
S
80 1 3
get_system_of_record()
S
80 1 3
is_system_of_record_woocommerce()
S
79 1 3
is_system_of_record_square()
S
79 1 3
is_debug_enabled()
S
79 1 3
is_sandbox()
S
80 1 3
clear_location_id()
S
72 1 5